package fr.norsys.mapper.console.service;

import java.util.List;

import fr.norsys.mapper.console.exception.IdentifiantException;
import fr.norsys.mapper.console.model.IdentifiantComponent;

public interface IdentifiantService {

	/**
	 * Service to save an identifiant component in the list in session
	 * @param identifiant : identifiant component
	 * @param identifiants : list of identifiant components
	 */

	void save(IdentifiantComponent identifiant,List identifiants)throws IdentifiantException;
	/**
	 * Service to add an identifiant component in the list in session
	 * @param identifiant : identifiant component
	 * @param identifiants : list of identifiant components
	 */

	void delete(String id,List identifiants);
	IdentifiantComponent get(String id,List identifiants);
	/**
	 * Action to list the identifiants components of the complete 
	 * identifiant of the resource.
	 * @param currentId : the complete identifiant of the resource.
	 * @return
	 */
	List list(String currentId);
	/**
	 * Service to get the complete identifiant, from the list of components
	 * @param identifiants
	 * @return
	 */
	String getCompleteId(List identifiants);
}
